﻿@{
    ViewBag.Title = "activity";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

    <script src="~/Content/js/pagination.js"></script>
    <link href="~/Content/css/about.css" rel="stylesheet" />
<script src="~/LIB/jquery-1.9.1.min.js"></script>

<body>
    <div class="container">
        <div class="content">
            <div class="content_inner">

                <div class="content_nav">
                    <div class="content_nav-title">
                        <h5>关于我们</h5>
                        <span>About Us</span>
                    </div>
                    <ul class="content_nav-list">
                        <li class="content_nav-item nav_intro ">
                            <a href="/about/company">公司简介</a>
                        </li>
                        <li class="content_nav-item nav_management ">
                            <a href="/team/management">管理团队</a>
                        </li>
                        <li class="content_nav-item nav_news">
                            <a href="/new/news">新闻动态</a>
                        </li>
                        <li class="content_nav-item nav_activity nav_active">
                            <a href="/active/activity">最新活动</a>
                        </li>
                    </ul>
                </div>


                <div class="content_desc ">
                    <div class="content_desc_news" >
                         <ul class="content_news-list"  id="acti">
                            @*<li class="content_news-item">
                                <h4 class="news_title">
                                    <a href="/activity/bubuduojin">步步夺金——平安好医生全民健走奖励计划</a>
                                </h4>
                                <span class="news_date">
                                    2015-12-04
                                </span>
                                <p class="news_content">
                                    使用平安好医生计步，走路赚钱，每天6元，幸运抽奖送奔驰汽车
                                </p>
                            </li>*@
                            @*<li class="content_news-item">
                                <h4 class="news_title">
                                    <a href="/activity/jiankangtoutiaozhaomu">平安好医生自媒体合作人招募计划</a>
                                </h4>
                                <span class="news_date">
                                    2016-10-31
                                </span>
                                <p class="news_content">
                                    我们将要打造的是健康内容开放平台的引领者 ，我们能让天下没有难做的自媒体人！
                                </p>
                            </li>*@
                        </ul> 
                    </div>
                </div>
            </div>


            <div class="pagination-outer">
                <div class="pagination-wrap">
                    <div class="pagination" id="pagination"></div>
                </div><!-- pagination-wrap -->
            </div>
        </div><!-- content -->
        </div>
    </body>
<script>
    $(document).ready(function () {

        $.ajax({

            type: 'get',
            url: "/active/actives",
            success: function (data) {
                $(data).each(function (i, item) {
                    var i = '<li class="content_news-item">';
                    i += '<h4 class="news_title">';
                    i += '<a href="/activity/bubuduojin">' + item.Title + '</a>';
                    i += '</h4>';
                    i += '<span class="news_date">' + item.InTime + '</span>';
                    i += '<p class="news_content">' + item.Content + '</p>';
                    i += '</li>';
                    $("#acti").append(i);
                });
            },
        });
    });
    </script>
